﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
using System.Net;

public partial class product_card_admin_RewardConversion : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
        smtp.EnableSsl = true;
        smtp.UseDefaultCredentials = false;

        smtp.Credentials = new NetworkCredential(TextBox2.Text, TextBox1.Text);
        MailMessage mail = new MailMessage(TextBox2.Text, TextBox3.Text, TextBox4.Text, TextBox5.Text);
        try
        {
            smtp.Send(mail);

        }
        catch (Exception ex)
        {
            Response.Write("Exception Occured : " + e);

        }
    }
}